package com.fly.pojo;


import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


@TableName("t_blog")
@Data
public class Blog {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;
    private String description;
    private Long typeId;
    private String title;   //标题
    private String content; //博客内容
    private String firstPicture;    //主图
    private String flag;    //标记
    private Integer views;  //浏览次数
    private boolean appreciation;   //赞赏是否开启
    private boolean shareStatement; //转载声明是否开启
    private boolean commentabled;   //评论
    private boolean published;      //发布
    private boolean recommend;      //是否推荐

    @JsonFormat(pattern="yyyy-MM-dd ",timezone= "GMT+8")
    private Date createTime;        //创建时间
    @JsonFormat(pattern="yyyy-MM-dd ",timezone= "GMT+8")
    private Date updateTime;        //更新时间




}
